﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LabEdit.aspx.cs" Inherits="WebUI.LabManage.LabEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Panel runat="server" ID="newPanel" ShowBorder="false" ShowHeader="false">
        <Items>
            <ext:Form runat="server" ID="NewForm" AutoHeight="true" AutoScroll="false" EnableBackgroundColor="true"
                ShowBorder="true" ShowHeader="false" BodyPadding="5px" AutoWidth="true">
                <Rows>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" ID="tb_labname" Label="实验室名" Required="true" ShowRedStar="true"
                                MaxLength="50" TabIndex="1">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="tb_labno" Label="编号" Required="true" ShowRedStar="true"
                                TabIndex="2">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:DropDownList runat="server" ID="dl_location" Label="地理位置" Required="true" ShowRedStar="true"
                                TabIndex="3">
                            </ext:DropDownList>
                            <ext:DropDownList runat="server" ID="dl_level" Label="实验室级别" Required="true" ShowRedStar="true"
                                TabIndex="4">
                            </ext:DropDownList>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:DropDownList runat="server" ID="dl_cat" Label="实验室类型" Required="true" ShowRedStar="true"
                                TabIndex="5">
                            </ext:DropDownList>
                            <ext:DatePicker runat="server" ID="dp_useDate" Label="启用年份" EmptyText="请选择日期" Required="true"
                                ShowRedStar="true" DateFormatString="yyyy-MM-dd" TabIndex="6">
                            </ext:DatePicker>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" ID="tb_area" Label="实验室面积" EmptyText="(平方米)" TabIndex="7">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="tb_tel" Label="实验室电话" TabIndex="8">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" ID="tb_summary" Label="实验室简介" TabIndex="9">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:CheckBox runat="server" ID="ck_openStudent" Checked="true" Label="对学生开放">
                            </ext:CheckBox>
                            <ext:CheckBox runat="server" ID="ck_openTeacher" Checked="true" Label="对老师开放">
                            </ext:CheckBox>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
        </Items>
        <Toolbars>
            <ext:Toolbar runat="server" ID="toobar1" Position="Bottom">
                <Items>
                    <ext:ToolbarFill runat="server">
                    </ext:ToolbarFill>
                    <ext:Button ID="bnSave" runat="server" Icon="Add" Text="保存" ValidateForms="NewForm"
                        Type="Submit" OnClick="bnSave_Click">
                    </ext:Button>
                    <ext:Button ID="bnClose" runat="server" Icon="Decline" Text="关闭">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
    </ext:Panel>
    <ext:Panel runat="server" ID="EditPanel" ShowBorder="false" ShowHeader="false">
        <Items>
            <ext:Form runat="server" ID="EditForm" AutoHeight="true" AutoScroll="false" EnableBackgroundColor="true"
                ShowBorder="true" ShowHeader="false" BodyPadding="5px" AutoWidth="true">
                                <Rows>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" ID="tb_edit_labname" Label="实验室名" Required="true" ShowRedStar="true"
                                MaxLength="50" TabIndex="1">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="tb_edit_labno" Label="编号" Required="true" ShowRedStar="true"
                                TabIndex="2">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:DropDownList runat="server" ID="dl_edit_location" Label="地理位置" Required="true" ShowRedStar="true"
                                TabIndex="3">
                            </ext:DropDownList>
                            <ext:DropDownList runat="server" ID="dl_edit_level" Label="实验室级别" Required="true" ShowRedStar="true"
                                TabIndex="4">
                            </ext:DropDownList>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:DropDownList runat="server" ID="dl_edit_cat" Label="实验室类型" Required="true" ShowRedStar="true"
                                TabIndex="5">
                            </ext:DropDownList>
                            <ext:DatePicker runat="server" ID="dp_edit_useDate" Label="启用年份" EmptyText="请选择日期" Required="true"
                                ShowRedStar="true" DateFormatString="yyyy-MM-dd" TabIndex="6">
                            </ext:DatePicker>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" ID="tb_edit_area" Label="实验室面积" EmptyText="(平方米)" TabIndex="7">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="tb_edit_tel" Label="实验室电话" TabIndex="8">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" ID="tb_edit_summary" Label="实验室简介" TabIndex="9">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:CheckBox runat="server" ID="ck_edit_openStudent" Label="对学生开放" TabIndex="10">
                            </ext:CheckBox>
                            <ext:CheckBox runat="server" ID="ck_edit_openTeacher" Label="对老师开放" TabIndex="11">
                            </ext:CheckBox>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
        </Items>
        <Toolbars>
            <ext:Toolbar runat="server" ID="Toolbar1" Position="Bottom">
                <Items>
                    <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                    </ext:ToolbarFill>
                    <ext:Button ID="bnEdit" runat="server" Icon="Add" Text="保存" ValidateForms="EditForm"
                        Type="Submit" OnClick="bnEdit_Click">
                    </ext:Button>
                    <ext:Button ID="BnClose2" runat="server" Icon="Decline" Text="关闭">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
    </ext:Panel>
    </form>
</body>
</html>
